using System;

namespace BanZuiCloudControlAgent.Core.Mqtt.Enum
{
    /// <summary>
    /// EMQX错误类型枚举
    /// </summary>
    public enum EmqxErrorType
    {
        /// <summary>
        /// 未知错误
        /// </summary>
        Unknown = 0,

        /// <summary>
        /// 连接失败
        /// </summary>
        ConnectionFailed = 1,

        /// <summary>
        /// 连接断开
        /// </summary>
        ConnectionLost = 2,

        /// <summary>
        /// 发布消息失败
        /// </summary>
        PublishFailed = 3,

        /// <summary>
        /// 订阅主题失败
        /// </summary>
        SubscribeFailed = 4,

        /// <summary>
        /// 取消订阅失败
        /// </summary>
        UnsubscribeFailed = 5,

        /// <summary>
        /// 认证失败
        /// </summary>
        AuthenticationFailed = 6,

        /// <summary>
        /// 无效的主题
        /// </summary>
        InvalidTopic = 7,

        /// <summary>
        /// 无效的消息
        /// </summary>
        InvalidMessage = 8,

        /// <summary>
        /// 未连接
        /// </summary>
        NotConnected = 9,

        /// <summary>
        /// 断开连接失败
        /// </summary>
        DisconnectionFailed = 10,

        /// <summary>
        /// 消息监听器启动失败
        /// </summary>
        ListenerStartFailed = 11,

        /// <summary>
        /// 消息监听器停止失败
        /// </summary>
        ListenerStopFailed = 12
    }
} 